<local:DocumentBase x:Class="WPFExcelReport.YCAEK02LIST"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core"
                    xmlns:db="clr-namespace:INTEX.DataBase"
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"
                    xmlns:wep="clr-namespace:WPFExcelReport"                    
                    Loaded="Window_Loaded"
                    Background="White"
     >
    <local:DocumentBase.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
        <ucd:TextTrimmingConverter  x:Key="trim"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <db:SETINTEXDB  x:Key="SetData" />
        <db:SETINTEXDB  x:Key="Set4ITX" />
        <db:SETINTEXDB  x:Key="Set4ITX2" />
        <db:SETINTEXDB  x:Key="SetEnv" />
        <CollectionViewSource   x:Key="vwLIEFDAT" Source="{Binding Path=LIEFDAT,Source={StaticResource SetEnv}}" />
        <CollectionViewSource   x:Key="vwSECTION" Source="{Binding Path=ICC_SECTION,Source={StaticResource SetEnv}}" />
        <CollectionViewSource   x:Key="vwEKKOPF" Source="{Binding Path=EKKOPF,Source={StaticResource SetData}}" />
        <CollectionViewSource   x:Key="vwEKPOS" Source="{Binding Path=EKPOS,Source={StaticResource Set4ITX}}" />
        <CollectionViewSource   x:Key="vwEKPOS2" Source="{Binding Path=EKPOS,Source={StaticResource Set4ITX2}}" />
        <CollectionViewSource   x:Key="vwEKPOS3" Source="{Binding Path=ICC_EKPOS,Source={StaticResource Set4ITX2}}" />
        <CollectionViewSource   x:Key="vwWASTAMM" Source="{Binding Path=WASTAMM,Source={StaticResource Set4ITX}}" />
        <CollectionViewSource   x:Key="vwTmpEKVRECH" Source="{Binding Path=EKVRECH,Source={StaticResource SetData}}" />
    </local:DocumentBase.Resources>
    <Grid   >
        <TabControl>
            <TabItem Header="{Binding Source={Localization:Translate Word=供应商季节}}" >
                <Grid   >
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="1*" />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="200"></ColumnDefinition>
                        <ColumnDefinition Width="1*"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <StackPanel Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2">
                        <WrapPanel>
                            <Button FontSize="18" Content="{Binding Source={Localization:Translate Word=查询}}"  BorderBrush="Yellow" Margin="20,0,0,0" Click="btnQuery_Click" Height="40" Width="40">

                            </Button>
                            <TextBlock VerticalAlignment="Center">供应商</TextBlock>
                            <ComboBox  ItemsSource="{Binding Source={StaticResource ResourceKey=vwLIEFDAT}}"
                                       Margin="20,0,0,0"
                                       Background="Gray"  MinWidth="100" 
                                       DisplayMemberPath="LSLIEFNA"
                                       IsEditable="True"
                                       SelectedValuePath="LSLIEFNR"
                                       >
                            </ComboBox>
                            <TextBlock Text="{Binding Source={Localization:Translate Word=年份}}" FontSize="18" VerticalAlignment="Center"></TextBlock>
                            <TextBox FontSize="18" Name="txtYear" VerticalAlignment="Center">2014</TextBox>
                            <TextBlock Text="{Binding Source={Localization:Translate Word=波段}}" VerticalAlignment="Center"></TextBlock>
                            <ComboBox Width="100" Name="cbSECTION"
                          DisplayMemberPath="SDDATEN"
                          SelectedValuePath="SDKEY"
                          SelectionChanged="cbSECTION_SelectionChanged"
                         ItemsSource="{Binding Source={StaticResource ResourceKey=vwSECTION}}"  
                          ></ComboBox>
                            <TextBox Name="txtSection" Width="220" FontSize="18" Background="Beige" CharacterCasing="Upper" ></TextBox>
                            <Button FontSize="18" Content="{Binding Source={Localization:Translate Word=筛选}}"  BorderBrush="Yellow" Margin="20,0,0,0" Click="btnFilterEK0201_Click" Height="40" Width="40"/>
                            <Button FontSize="18" Content="{Binding Source={Localization:Translate Word=清除}}"  BorderBrush="Yellow" Margin="20,0,0,0" Click="btnFilterEK0201Clear_Click" Height="40" Width="40"/>
                            <Button Content="{Binding Source={Localization:Translate Word=预览}}"  FontSize="18"   BorderBrush="Yellow" Margin="20,0,0,0"  Width="Auto" Click="btnPrintPreview_Click"/>
                        </WrapPanel>
                    </StackPanel>
                    <StackPanel Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2">
                        <DataGrid CanUserReorderColumns="True"  
                                  Name="dlgEK0201"
                              CanUserResizeRows="True" CanUserSortColumns="True"                  
                              AutoGenerateColumns="False"   
                              EnableRowVirtualization="False"  
                              RowDetailsVisibilityMode="VisibleWhenSelected" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
                              IsSynchronizedWithCurrentItem="True" Opacity="10" Visibility="Visible"
                              ItemsSource="{Binding Source={StaticResource ResourceKey=vwEKPOS}}"  
                                  MaxHeight="600"
                              Grid.ColumnSpan="4" Margin="0,1,0,0" Grid.Row="2">
                            <DataGrid.Columns>
                                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=供应商}}"  Binding="{Binding LSLIEFNA}" Width="Auto"/>
                                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=年份}}" Binding="{Binding FSKOLL}" Width="Auto"/>
                                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=季节}}" Binding="{Binding FSARTPRGR}" Width="Auto"/>
                                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=数量}}" Binding="{Binding EKPME1}" Width="Auto"/>
                                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=单位}}" Binding="{Binding EKPMEEH}" Width="Auto"/>
                                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=总金额}}" Binding="{Binding Path=EKPWE1}" Width="Auto"/>
                            </DataGrid.Columns>
                        </DataGrid  >
                    </StackPanel>
                </Grid   >
            </TabItem>
            <TabItem Header="{Binding Source={Localization:Translate Word=款式采购}}">
                <Grid   >
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="1*" />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="1*"></ColumnDefinition> 
                    </Grid.ColumnDefinitions>
                    <StackPanel Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3">
                        <WrapPanel>
                            <Button FontSize="18" Content="{Binding Source={Localization:Translate Word=查询}}"  BorderBrush="Yellow" Margin="20,0,0,0" Click="btnQuery1_Click" Height="40" Width="40"></Button>
                            <TextBlock FontSize="18" VerticalAlignment="Center">年份</TextBlock>
                            <TextBox FontSize="18" Name="txtSYear" VerticalAlignment="Center">2014</TextBox>
                            <TextBlock Text="{Binding Source={Localization:Translate Word=波段}}"></TextBlock>
                            <ComboBox Width="100"  Height="23"
                          DisplayMemberPath="SDDATEN"
                          SelectedValuePath="SDKEY"
                          SelectionChanged="cbSECTION_SelectionChanged"
                         ItemsSource="{Binding Source={StaticResource ResourceKey=vwSECTION}}"  
                          ></ComboBox>
                            <TextBox    Height="23" Width="100" Background="White" CharacterCasing="Upper"  Text="{Binding ElementName=txtSection, Path=Text}"></TextBox>
                            <TextBlock FontSize="18" VerticalAlignment="Center">款式</TextBlock>
                            <TextBox Name="txtArt" Width="180" FontSize="18" Background="Beige" CharacterCasing="Upper" ></TextBox>
                            <TextBlock FontSize="18" VerticalAlignment="Center">面料</TextBlock>
                            <TextBox Name="txtFArt" Width="100" FontSize="18" Background="Yellow" CharacterCasing="Upper" ></TextBox>
                            <Button FontSize="18" Content="{Binding Source={Localization:Translate Word=筛选}}"  BorderBrush="Yellow" Margin="20,0,0,0" Click="btnFilterEK0202_Click" Height="40" Width="40"/>
                            <Button FontSize="18" Content="{Binding Source={Localization:Translate Word=清除}}"  BorderBrush="Yellow" Margin="20,0,0,0" Click="btnFilterEK0202Clear_Click" Height="40" Width="40"/>
                            <Button Content="{Binding Source={Localization:Translate Word=预览}}"  FontSize="18"   BorderBrush="Yellow" Margin="20,0,0,0"    Width="Auto" Click="btnPrintPreview1_Click"/>
                        </WrapPanel>
                    </StackPanel>
                    <StackPanel Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3">
                        <DataGrid CanUserReorderColumns="True"  
                                  Name="dlgEK0202"
                              CanUserResizeRows="True" CanUserSortColumns="True"                  
                              AutoGenerateColumns="False"   
                              EnableRowVirtualization="True"  
                                  MaxHeight="600"
                                  FontSize="12"
                              RowDetailsVisibilityMode="VisibleWhenSelected" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
                              IsSynchronizedWithCurrentItem="True" Opacity="10" Visibility="Visible"
                              ItemsSource="{Binding Source={StaticResource ResourceKey=vwEKPOS2}}"  
                              Grid.ColumnSpan="4" Margin="0,1,0,0" Grid.Row="2">
                            <DataGrid.Columns>
                                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=采购员}}" Binding="{Binding EKPNEUB}" Width="Auto"/>
                                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=供应商}}" Binding="{Binding LSNAME1}" Width="Auto"/>
                                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=波段}}" Binding="{Binding FSARTPRGR}" Width="Auto"/>                                
                                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=款号}}" Binding="{Binding ABPART,Converter={StaticResource ResourceKey=trim}}" Width="Auto"/>
                                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=款式}}" Binding="{Binding FSABEZ}" Width="Auto"/>
                                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=颜色}}" Binding="{Binding ABPFARBE,Converter={StaticResource ResourceKey=trim}}" Width="Auto"/>
                                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=颜色}}" Binding="{Binding FSFFBEZ}" Width="Auto"/>
                                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=类型}}" Binding="{Binding FSSZUSCHN}" Width="Auto"/>
                                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=供应商编号}}" Binding="{Binding EXART}" Width="Auto"/>
                                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=色号}}" Binding="{Binding EXCOLOR}" Width="Auto"/>
                                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=原料}}" Binding="{Binding ABAART}" Width="Auto"/>
                                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=色号}}" Binding="{Binding ABAFARBE,Converter={StaticResource ResourceKey=trim}}" Width="Auto"/>
                                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=尺寸}}" Binding="{Binding ABAGROE,Converter={StaticResource ResourceKey=trim}}" Width="Auto"/>
                                <DataGridTextColumn Header="" Binding="{Binding Path=ABAAUFKRS}" Width="Auto"/>
                                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=采购单}}" Binding="{Binding Path=ABAAUFLFD, Converter={StaticResource ResourceKey=pnum}}" Width="Auto"/>
                                <DataGridTextColumn Header="" Binding="{Binding Path=ABAAUFPOS, Converter={StaticResource ResourceKey=pnum}}" Width="Auto"/>
                                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=交期}}" Binding="{Binding Path=EKPVTERMIN}" Width="Auto"/>
                                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=原交期}}" Binding="{Binding Path=EKPLTERM}" Width="Auto"/>
                                <DataGridTextColumn Header="" Binding="{Binding Path=EKPBEKZ}" Width="Auto"/>
                                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=确认}}" Binding="{Binding Path=EKPBEDAT}" Width="Auto"/>
                                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=财务审核}}" Binding="{Binding Path=EKPKNTRNRL}"   Width="Auto" />
                                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=入库}}" Binding="{Binding Path=REPDAT}" Width="Auto"/>
                                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=单价}}" Binding="{Binding Path=EKPPRME}" Width="Auto"/>
                                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=数量}}" Binding="{Binding Path=EKPME1}" Width="Auto"/>
                                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=实收}}" Binding="{Binding Path=EKPME3}" Width="Auto"/>                                
                                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=总金额}}" Binding="{Binding Path=EKPWE1}" Width="Auto"/>
                                <DataGridTextColumn Header="" Binding="{Binding Path=ABAAUFPOS}" Width="Auto"/>
                                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=需求数量}}" Binding="{Binding Path=ABARESMG}" Width="Auto"/>
                                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=计划用量}}" Binding="{Binding Path=ABAQTYRESERVE}" Width="Auto"/>
                            </DataGrid.Columns>
                        </DataGrid  >
                    </StackPanel>
                </Grid   >
            </TabItem>
            <TabItem Header="{Binding Source={Localization:Translate Word=辅料采购}}">
                <Grid   >
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="1*" />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="1*"></ColumnDefinition> 
                    </Grid.ColumnDefinitions>
                    <StackPanel Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="4">
                        <WrapPanel>
                            <Button FontSize="18" Content="{Binding Source={Localization:Translate Word=查询}}"  BorderBrush="Yellow" Margin="20,0,0,0" Click="btnQuery3_Click" Height="40" Width="40"></Button>
                            <TextBlock Text="{Binding Source={Localization:Translate Word=未入库}}"></TextBlock>
                            <CheckBox Name="ChkFEKME3" IsChecked="True" VerticalAlignment="Center" 
                          Background="White"
                          >
                                <CheckBox.LayoutTransform>
                                    <ScaleTransform ScaleX="2" ScaleY="2" />
                                </CheckBox.LayoutTransform>
                            </CheckBox>
                        </WrapPanel>
                    </StackPanel>
                    <StackPanel Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="4">
                        <DataGrid CanUserReorderColumns="True"  
                                  Name="dlgEK0203"
                              CanUserResizeRows="True" CanUserSortColumns="True"                  
                              AutoGenerateColumns="False"   
                              EnableRowVirtualization="True"  
                                  MaxHeight="600"
                                  FontSize="12"
                              RowDetailsVisibilityMode="VisibleWhenSelected" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
                              IsSynchronizedWithCurrentItem="True" Opacity="10" Visibility="Visible"
                              ItemsSource="{Binding Source={StaticResource ResourceKey=vwEKPOS3}}"  
                              Grid.ColumnSpan="4" Margin="0,1,0,0" Grid.Row="2">
                            <DataGrid.Columns>
                                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=采购员}}" Binding="{Binding EKPNEUB}" Width="Auto"/>
                                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=原料}}" Binding="{Binding EKPART}" Width="Auto"/>
                                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=色号}}" Binding="{Binding EKPFARBE,Converter={StaticResource ResourceKey=trim}}" Width="Auto"/>
                                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=尺寸}}" Binding="{Binding EKPGROE,Converter={StaticResource ResourceKey=trim}}" Width="Auto"/>
                                <DataGridTextColumn Header="" Binding="{Binding Path=EKPAUFKRS}" Width="Auto"/>
                                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=采购单}}" Binding="{Binding Path=EKPAUFLFD, Converter={StaticResource ResourceKey=pnum}}" Width="Auto"/>
                                <DataGridTextColumn Header="" Binding="{Binding Path=EKPAUFPOS, Converter={StaticResource ResourceKey=pnum}}" Width="Auto"/>
                                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=采购量}}" Binding="{Binding Path=EKPME1,Converter={StaticResource ResourceKey=d100}}" Width="Auto"/>
                                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=入库量}}" Binding="{Binding Path=EKPME3,Converter={StaticResource ResourceKey=d100}}" Width="Auto"/>
                            </DataGrid.Columns>
                        </DataGrid  >
                    </StackPanel>
                </Grid   >
            </TabItem>
            <TabItem Header="{Binding Source={Localization:Translate Word=面料采购}}">
                <Grid   >
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="1*" />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="28.343"></ColumnDefinition>
                        <ColumnDefinition Width="171.657"/>
                        <ColumnDefinition Width="1000"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <StackPanel Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3">
                        <WrapPanel>
                            <Button FontSize="18" Content="{Binding Source={Localization:Translate Word=查询}}"  BorderBrush="Yellow" Margin="20,0,0,0" Click="btnQuery4_Click" Height="40" Width="40"></Button>
                            <TextBlock Text="{Binding Source={Localization:Translate Word=未入库}}"></TextBlock>
                            <CheckBox Name="ChkFEKME4" IsChecked="True" VerticalAlignment="Center" 
                          Background="White"
                          >
                                <CheckBox.LayoutTransform>
                                    <ScaleTransform ScaleX="2" ScaleY="2" />
                                </CheckBox.LayoutTransform>
                            </CheckBox>
                        </WrapPanel>
                    </StackPanel>
                    <StackPanel Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3">
                        <DataGrid CanUserReorderColumns="True"  
                                  Name="dlgEK0204"
                              CanUserResizeRows="True" CanUserSortColumns="True"                  
                              AutoGenerateColumns="False"   
                              EnableRowVirtualization="True"  
                                  MaxHeight="600"
                                  FontSize="12"
                              RowDetailsVisibilityMode="VisibleWhenSelected" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
                              IsSynchronizedWithCurrentItem="True" Opacity="10" Visibility="Visible"
                              ItemsSource="{Binding Source={StaticResource ResourceKey=vwEKPOS3}}"  
                              Grid.ColumnSpan="4" Margin="0,1,0,0" Grid.Row="2">
                            <DataGrid.Columns>
                                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=采购员}}" Binding="{Binding EKPNEUB}" Width="Auto"/>
                                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=原料}}" Binding="{Binding EKPART}" Width="Auto"/>
                                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=色号}}" Binding="{Binding EKPFARBE,Converter={StaticResource ResourceKey=trim}}" Width="Auto"/>
                                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=尺寸}}" Binding="{Binding EKPGROE,Converter={StaticResource ResourceKey=trim}}" Width="Auto"/>
                                <DataGridTextColumn Header="" Binding="{Binding Path=EKPAUFKRS}" Width="Auto"/>
                                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=采购单}}" Binding="{Binding Path=EKPAUFLFD, Converter={StaticResource ResourceKey=pnum}}" Width="Auto"/>
                                <DataGridTextColumn Header="" Binding="{Binding Path=EKPAUFPOS, Converter={StaticResource ResourceKey=pnum}}" Width="Auto"/>
                                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=采购量}}" Binding="{Binding Path=EKPME1,Converter={StaticResource ResourceKey=d100}}" Width="Auto"/>
                                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=入库量}}" Binding="{Binding Path=EKPME3,Converter={StaticResource ResourceKey=d100}}" Width="Auto"/>
                            </DataGrid.Columns>
                        </DataGrid  >
                    </StackPanel>
                </Grid   >
            </TabItem>
            <TabItem Header="{Binding Source={Localization:Translate Word=付款历史记录}}">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"></RowDefinition>
                        <RowDefinition Height="1*"></RowDefinition>
                    </Grid.RowDefinitions>
                    <WrapPanel Grid.Row="0">
                        <TextBlock FontSize="18" Text="{Binding Source={Localization:Translate Word=年月日}}"></TextBlock>
                        <TextBox FontSize="18" Name="txtDate" Width="100"></TextBox>
                        <TextBlock FontSize="18" Text="{Binding Source={Localization:Translate Word=20140901或201409或2014}}"></TextBlock>
                        <Button FontSize="18" Margin="20,0,0,0" Click="btnQueryHistory_Click" Content="{Binding Source={Localization:Translate Word=查询}}"></Button>
                        <Button FontSize="18" Margin="20,0,0,0" Click="btnPrintHistory_Click" Content="{Binding Source={Localization:Translate Word=输出}}"></Button>
                    </WrapPanel>
                    <DataGrid  Grid.Row="1"
                    CanUserReorderColumns="True"
                           CanUserResizeRows="True" 
                           CanUserSortColumns="True" 
                           AutoGenerateColumns="False"
                           EnableRowVirtualization="True" 
                           RowDetailsVisibilityMode="VisibleWhenSelected" 
                           HorizontalAlignment="Stretch" 
                           VerticalAlignment="Stretch"
                           IsSynchronizedWithCurrentItem="True" 
                           Opacity="10" Visibility="Visible" ItemsSource="{Binding Source={StaticResource ResourceKey=vwTmpEKVRECH}}" 
                  Grid.Column="1" Margin="1,0,0,0"  >
                        <DataGrid.Columns>
                            <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=付款日期}}" Binding="{Binding EKVAENDDAT}" Width="Auto"/>
                            <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=供应商}}" Binding="{Binding SELLER}" Width="Auto"/>
                            <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=生产单}}" Binding="{Binding PRODAUF}" Width="Auto"/>
                            <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=加工厂}}" Binding="{Binding EXFTY}" Width="Auto"/>
                            <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=采购单}}" Binding="{Binding EKAUF}" Width="Auto"/>
                            <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=我司编号}}" Binding="{Binding MAT}" Width="Auto"/>
                            <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=款号}}" Binding="{Binding ABPART}" Width="Auto"/>
                            <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=布行编号}}" Binding="{Binding Path=EXART}" Width="Auto"/>
                            <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=色号}}" Binding="{Binding Path=EXCOLOR}" Width="Auto"/>
                            <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=色名}}" Binding="{Binding CDES}" Width="Auto"/>
                            <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=部位}}" Binding="{Binding MATTYP}" Width="Auto" />
                            <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=需求数}}" Binding="{Binding RQTY}" Width="Auto" />
                            <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=UM}}" Binding="{Binding WAUEBM}" Width="Auto" />
                            <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=实数}}" Binding="{Binding ACTUALQTY}" Width="Auto" />
                            <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=单价}}" Binding="{Binding EKPPR}" Width="Auto" />
                            <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=单位}}" Binding="{Binding PUM}" Width="Auto" />
                            <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=金额}}" Binding="{Binding EKPVALUE}" Width="Auto" />
                            <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=付款金额}}" Binding="{Binding PAID}" Width="Auto" />
                            <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=采购员}}" Binding="{Binding Path=EKVEMPF}" Width="Auto" />
                            <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=财务人员}}" Binding="{Binding Path=EKVAENDBEN}" Width="Auto" />
                        </DataGrid.Columns>
                    </DataGrid  >
                </Grid>
            </TabItem>
        </TabControl>
    </Grid>
</local:DocumentBase>
